﻿<UserControl x:Class="wUniApp.WPF.Controls.ucPatientsView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
  <UserControl.Resources>

    <Style TargetType="{x:Type ListViewItem}">
      <Style.Triggers>
        <Trigger Property="ItemsControl.AlternationIndex" Value="0">
          <Setter Property="Background" Value="#7F000000"/>
        </Trigger>
        <Trigger Property="ItemsControl.AlternationIndex" Value="1">
          <Setter Property="Background" Value="Transparent"/>
        </Trigger>
      </Style.Triggers>
    </Style>
  </UserControl.Resources>
  <Grid>
    <ListView ItemsSource="{Binding Items}" SelectedItem="{Binding SelectedItem}"
      Background="Transparent" BorderBrush="Transparent" Foreground="White"
      VerticalAlignment="Stretch" HorizontalAlignment="Stretch" >
      <ListView.Resources>
        <SolidColorBrush x:Key="{x:Static SystemColors.HighlightBrushKey}" Color="SteelBlue"/>
      </ListView.Resources>
      <ListView.ItemTemplate>
        <DataTemplate>
          <StackPanel>

            <TextBlock Text="Priezvisko / Meno " FontSize="8" />
            <TextBlock Text="{Binding LastName}" FontWeight="Bold" FontSize="20" />
            <TextBlock Text="{Binding FirstName}" FontWeight="Normal" FontSize="16" />

          </StackPanel>
        </DataTemplate>
      </ListView.ItemTemplate>
    </ListView>
  </Grid>
</UserControl>
